//
//  RequestServer.h
//  ChinaMerchantBank
//
//  Created by chen wei on 13-6-28.
//  Copyright (c) 2013年 xguanjia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequestDelegate.h"
#import "RequestServerDelegate.h"
#import "Reachability.h"

@interface RequestServer : NSObject<ASIHTTPRequestDelegate>
{
    Reachability *hostRech;

}
+ (RequestServer *)instance;

- (void)doActionAsync:(int)viewInstanceId
           withAction:(NSString*)actionName
       withParameters:(id)parameters
         withDelegate:(id<RequestServerDelegate>)delegate;

- (void)doActionAsync2:(int)viewInstanceId
           withAction:(NSString*)actionName
       withParameters:(id)parameters
         withDelegate:(id<RequestServerDelegate>)delegate;

- (void)doActionAsync3:(int)viewInstanceId
            withAction:(NSString*)actionName
        withParameters:(id)parameters
          withDelegate:(id<RequestServerDelegate>)delegate;


- (void)doActionAsyncWithoutWaitCursor:(int)viewInstanceId
                            withAction:(NSString*)actionName
                        withParameters:(id)parameters
                          withDelegate:(id<RequestServerDelegate>)delegate;
- (void)uploadFileAsync:(NSString*)filePath
           withDelegate:(id<RequestServerDelegate>)delegate

;@end
